@layout("/common/_container.html"){
<style>

/*聊天css*/
.for_list {
	width: 100%;
	display: flex;
}

.list {
	float: left;
	width: 15%;
	margin-left: 2%;
}

.list-item {
	text-align: left;
	 cursor:pointer
}

.list_top img {
	width: 150px;
	height: 200px;
}

.list_lower {
	width: 60%;
	display: flex;
	margin-top: 10px;
}

.list_lower_name {
	float: left;
	width: 70%;
	margin-left: 20px;
}

.list_lower_edit {
	float: left;
	width: 30%;
	margin-right: 20px;
}

a:link {
	color: #000000;
	text-decoration: none;
}

a:visited {
	color: #000000;
	text-decoration: none;
}

a:hover {
	color: #000000;
	text-decoration: none;
}

a:active {
	color: #000000;
	text-decoration: none;
}
</style>

<div class="container-fluid" style="padding: 0 !important;">
	<div class="row">
		<div class="for_list">
			@for(tApp in tAppList){
			<div class="list">
				<div class="list-item">
					<div class="list_top" onclick="goIndex('${tApp.appId}')">
						<img alt="" src="${tApp.img}">
					</div>
					<div class="list_lower">
						<div class="list_lower_name" onclick="goIndex('${tApp.appId}')">
							<div>${tApp.appName}</div>
						</div>
						<div class="list_lower_edit" onclick="update('${tApp.id}')">
							<div>编辑</div>
						</div>
					</div>
				</div>
			</div>
			@}
		</div>
	</div>
</div>
<script>
	function goIndex(appid) {
		localStorage.setItem("appid", appid);//存储变量名为key，值为value的变量  	
		window.parent.location.href = Feng.ctxPath + '/goindex?appid=' + appid;
	}
	
	/**
	 * 打开查看详情
	 */
	 function update (id) { 
	        var index = layer.open({
	            type: 2,
	            title: '详情',
	            area: ['900px', '520px'], //宽高
	            fix: false, //不固定
	            maxmin: true,
	            content: Feng.ctxPath + '/tAppList/tAppList_update/' +id
	        }); 
	};

</script>
@}
